package com.yunao.service;

import com.yunao.commons.serachcore.core.bean.*;
import com.yunao.entity.Report;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface ReportService {


    Report get(int id);

    void save(Report entity);

    void delete(int id);

    void saveOrUpdate(Report entity);

    void save(List<Report> entities);

    List<Report> findAllByUserIdAndMannerAndAloneReportId(Integer userId, Integer manner, Integer aloneReportId, Pageable pageable);

    List<Report> findAllByAloneReportIdAndUserId(String aloneReportId, String userId, Pageable pageable);

    List<Report> findAllByNameAndUserId(String name, Integer userId);

    List<Report> findAllByNameAndAddrs(String name, String addrs);

    Long countByMannerAndAloneReportIdAndUserId(Integer manner, Integer aloneReportId, Integer userId);

    Articles query(Map map);

    Cubes cube(Map map);

    Clusters cluster(Map map);

    Wordclouds wordcloud(Map map);

    Groups groups(Map map);

}
